import React from 'react'
import { Modal, WingBlank } from 'antd-mobile';
import './Pickers.css'
const operation = Modal.operation;

class Bnd extends React.Component {
    render() {
        let { arrs, title, upnowOption } = this.props
        let arrsmao = arrs.map(item => {
            return {
                ...item, onPress: () => {

                    // console.log('1111dasd');
                    return upnowOption(item)()
                }
            }
        })
        // console.log(arrsmao);
        return (
            <WingBlank size="lg">

                <div onClick={() => operation(arrsmao)}
                ><div className='btnIcon'><span>{title}</span><span className='iconfont icon-jiantouarrow486'></span>
                    </div></div>

            </WingBlank>
        )
    }
}


export default Bnd